from fastapi import APIRouter, Request
from fastapi.templating import Jinja2Templates
from fastapi.responses import JSONResponse

heatmap = APIRouter()



data_2 = [[0, 0, 0.1], [0, 1, -0.49], [0, 2, -0.24], [0, 3, -0.27], [0, 4, -0.11], [0, 5, 1],[1,0,-0.11],[1,1,-0.5],[1,2,-0.22],[1,3,0.0074],[1,4,1],[1,5,-0.11],[2,0,-0.27],[2,1,-0.06],[2,2,0.13],[2,3,1],[2,4,0.0074],[2,5,-0.11],[3,0,-0.032],[3,1,-0.1],[3,2,1],[3,3,0.13],[3,4,-0.22],[3,5,-0.24],[4,0,-0.42],[4,1,1],[4,2,-0.1],[4,3,-0.06],[4,4,-0.5],[4,5,-0.49],[5,0,1],[5,1,-0.42],[5,2,-0.032],[5,3,-0.27],[5,4,-0.11],[5,5,0.1]]




@heatmap.get("/getdata1")
async def get_data_1():

    result = data_2

    return JSONResponse(result)


